<script setup lang='ts'>
import { useRouter } from 'vue-router';
import { onMounted } from 'vue';
// const showSplash = ref(true);
const router = useRouter();
onMounted(() => {
    setTimeout(() => {
        navigateToHomePage();
    }, 5000);
});

const navigateToHomePage = () => {
    // 你可以使用router的push方法来导航  
    // 假设你已经设置了Vue Router并且可用  
    router.push('/home');
};

</script>

<template>

    <div>
        <h1>欢迎来到引导页</h1>

    </div>
    <input type="button" value="去首页" @click="navigateToHomePage">
</template>

<style></style>